package com.sunlg.smarthome.contract;

import com.sunlg.smarthome.base.IBasePresenter;
import com.sunlg.smarthome.base.IBaseView;
import com.sunlg.smarthome.data.entity.TempAndHum;

import java.util.List;

/**
 * Created by sunlg on 2017/5/10.
 */

public interface EnvironmentContract {

    interface View extends IBaseView{
        void loadAllTemAndHumSuccess(List<TempAndHum> tempAndHumList);
    }

    interface Presenter extends IBasePresenter<View>{
        void loadAllTempAndHum();
        void loadLatestTemp(int deviceId);
        void loadLatestHum(int deviceId);
    }
}
